package com.qhm123.spark.restlet;

import org.restlet.Component;
import org.restlet.data.Protocol;
import org.restlet.resource.ClientResource;

public class demo {

	public static void main(String[] args) throws Exception {
		// Create a new Component.
		Component component = new Component();

		// Add a new HTTP server listening on port 8182.
		component.getServers().add(Protocol.HTTP, 8182);

		// Attach the sample application.
		component.getDefaultHost().attach("/firstSteps",
				new FirstStepsApplication());

		// Start the component.
		component.start();

		// new ClientResource("http://www.restlet.org").get().write(System.out);
	}
}
